package com.provider.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Author Str
 * @Date 2022/1/5 10:09
 * @Description :
 */
@RestController
@RequestMapping("/user")
public class UserController {

    // 给cloud-rest-caller微服务调用
    // 自己本身也是一个微服务
    @RequestMapping(value = "/getStringData", method = RequestMethod.GET)
    public String getStringData() {
        return "provider.UserController.getStringData";
    }

}
